<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@ taglib prefix="s" uri="/struts-tags" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'projestList.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <h2>查询到的项目</h2>
   	<table border="1">
   		<tr>
   			<td width="100">项目ID</td>
   			<td width="100">项目名</td>
   			<td width="50">老师</td>
   			<td width="50">研究领域</td>
   			<td width="50">发布时间</td>
   		</tr>
   		
   		<s:iterator value="#request.searchProjectByGardenList" id="project">
   		<tr>
   			<td><a href="projectAction!showProject?Pid=<s:property value='#project[0]'/>"><s:property value="#project[0]"/></a></td>
   			<td><a href="projectAction!showProject?Pid=<s:property value='#project[0]'/>"><s:property value="#project[1]"/></a></td>
   			<td><a href="projectAction!showProject?Pid=<s:property value='#project[0]'/>"><s:property value="#project[2]"/></a></td>
   			<td><a href="projectAction!showProject?Pid=<s:property value='#project[0]'/>"><s:property value="#project[3]"/></a></td>
   			<td><a href="projectAction!showProject?Pid=<s:property value='#project[0]'/>"><fmt:formatDate value="${project[4]}"  pattern="yyyy-MM-dd HH:mm"/></a></td>

   		</tr>
   		
   		</s:iterator>
   	</table>
   	<hr>
  </body>
</html>
